<?php

    require('config.php');
    
    $ixBug = $_GET['ix']; // "3781"; // Case Number
    $dtStart = $_GET['dStart']; 
    $dtEnd = $_GET['dStop']; 
        
    // Send Request to Start Work
    $result = $fb->newInterval($ixBug,$dtStart,$dtEnd);
    
    /*
        $result will contain the XML reply from the FogBugz API (as a string).
        You may want to add functionality to parse this as needed, etc...
    */
?>